package com.chat.mapper;

import com.chat.pojo.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageMapper {
    void addMessage(Message msg);

    List<Message> getMessagesBetweenUsers(Integer userId, int friendId);

    void deleteMessagesBetweenUsers(@Param("userId") Integer userId, @Param("friendId") Integer friendId);

}
